package Com.amit.corejava;


class Bank
{
	public int getinterestrate()
	{
		return 0;
	}
}

class Sbi extends Bank
{
	public int getinterestrate()
	{
		return 1;
	}
}

class Icici extends Bank
{
	public int getinterestrate()
	{
		return 2;
	}
}
class Rbi extends Bank
{
	public int getinterestrate()
	{
		return 3;
	}
}
public class Lab37 {

	
	public static void main(String[] args) {
		
		Sbi s=new Sbi();
		Icici i=new Icici();
		Rbi r=new Rbi();
		
		System.out.println("sbi interest rate:"+s.getinterestrate());
		System.out.println("icici interest rate:"+i.getinterestrate());
		System.out.println("rbi interest rate:"+r.getinterestrate());
		

	}

}
